package yxy.cherry.battle.module.actor;

import yxy.cherry.battle.Battle;
import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.module.TriggerPoint;
import yxy.cherry.battle.module.record.stream.RecordStream_ANG;
import yxy.cherry.battle.module.record.stream.RecordStream_RND;

/** 第0轮 */
public class Actor_初始轮 extends Actor {

	@Override
	public void doAct() {
		int round = getContext().getRound();
		getRecord().info("Round " + round);

		Battle.battleLogger(1,"Round"+round);
		// 流脚本
		getRecord().stream(new RecordStream_RND(round)).record();

		for (Fighter fighter : getContext().getTeamA().getFighters()) {
			fighter.trigger(TriggerPoint.初始);
		}
		for (Fighter fighter : getContext().getTeamB().getFighters()) {
			fighter.trigger(TriggerPoint.初始);
		}
		for (Fighter fighter : getContext().getTeamA().getFighters()) {
			fighter.trigger(TriggerPoint.初始二);
		}
		for (Fighter fighter : getContext().getTeamB().getFighters()) {
			fighter.trigger(TriggerPoint.初始二);
		}
		for (Fighter fighter : getAffixContext().get怒气变动武将()) {
			getRecord().stream(new RecordStream_ANG(fighter)).record();
		}
	}

	@Override
	public boolean canAct() {
		return true;
	}
}
